package com.accp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.accp.entity.Users;
import com.accp.mapper.UsersMapper;
import com.accp.service.UsersService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Service
public class UsersServiceImpl implements UsersService{
	
	@Autowired
	UsersMapper usersMapper;

	@Override
	public Users login(String username, String password) {
		QueryWrapper<Users> qu = new QueryWrapper<Users>();
		qu.eq("username", username);
		qu.eq("password", password);
		return this.usersMapper.selectOne(qu);
	}

}
